/**************************************************
* TABLE 5: Issue Assignment by Staff Gender
**************************************************/
clear
use staff_issue.dta
by gender issue, sort: egen numissue = count(issueid)
keep gender issueid issue numissue
duplicates drop
gsort gender -numissue
by gender, sort: gen rank = _n 
order rank
br rank issue gender if gender =="F" & rank < 11
br rank issue gender if gender =="M" & rank < 11
